from tkinter import *
import tkinter.messagebox as messagebox


class Application(Frame):
    def __init__(self, master=None):
        Frame.__init__(self, master, bd=128)
        self.pack()
        self.createWidgets()

    def createWidgets(self):
        self.nameInput = Text(self, height=3)
        self.nameInput.pack(side='top')
        # self.quitButton = Button(self, text='Quit', command=self.quit)
        self.helloButton = Button(self, text='发送', command=self.hello)
        self.helloButton.pack()
        # self.quitButton.pack(side=LEFT, padx=10, pady=10)

    def hello(self):
        self.nameInput.get('0.0', 'end')
        messagebox.showinfo("Message", "发送成功，感谢您的反馈!")
        self.nameInput.delete('0.0', 'end')
        # self.quit()


app = Application()
app.master.title("用户反馈")
app.mainloop()
